
import Vue from 'vue'
import Router from 'vue-router'
import layout from '@/components/layout.vue'
import audio_edit from '@/components/audio_edit.vue'
import audio_format from '@/components/audio_format.vue'

Vue.use(Router);
let defaultRouter = [
  {
    path: '/',
    redirect: '/audio_edit',
  },
  {
    path: '/',
    component: layout,
    children: [
      {
        path: '/audio_edit',
        name:"音频编辑",
        component: audio_edit,
      },
      {
        path: '/audio_format',
        name:"音频格式转换",
        component: audio_format,
      }
    ]
  },
  {
    path: '*',
    redirect: '/audio_edit',
  },
];

export default new Router({
  routes: defaultRouter,
  // mode: 'history'
})
export {defaultRouter}
